﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DSDCiZharp.Models.Itinerarios.Itinerario>>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div></div>
<div>
    <asp:Label ID="Label1" runat="server" Text="Destinos" Font-Bold="True" 
        Font-Size="Medium"></asp:Label></div>
<div></div>
<div>
</div>
<div></div>
<div>
            <table>
                <tr>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Id.</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Origen</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Salida</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Destino</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Llegada</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold">Asientos</td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold"></td>
                    <td bgcolor="#CCCCFF" style="font-weight: bold"></td>
                </tr>
		<% foreach (var item in Model) { %>
			<tr>
				<td>
					<%: item.Id_Itinerario %>
				</td>	
				<td>
					<%: item.Descripcion_Origen %>
				</td>	
				<td>
					<%: item.Salida %>
				</td>
				<td>
					<%: item.Descripcion_Destino %>
				</td>
				<td>
					<%: item.Llegada %>
				</td>
				<td>
					<%: item.Total_Asiento %>
				</td>
                <td>
                    <%: Html.ActionLink("Modificar", "ModificarItinerario", new { Id_Itinerario = item.Id_Itinerario })%>
                </td>
                <td>
                    <%: Html.ActionLink("Eliminar", "EliminarItinerario", new { Id_Itinerario = item.Id_Itinerario })%>
                </td>
			</tr>
		<% } %>
                
            </table>
</div>
<div></div>
<div>
    
</div>
    <% using (Html.BeginForm("RegistrarItinerario", "Itinerario", FormMethod.Post))
    { %>
        <input type="submit" value="Nuevo" />
    <%} %>
<div></div>
<div>



</div>
<div></div>

</asp:Content>
